package com.huaxiafinance.management.dto.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by huangwencheng on 2017/9/15.
 */
public class ScoreRuleAddDto {

    private Integer id;

    @NotNull(message = "积分触发条件不能为空")
    private Integer triggerId;

    @NotNull(message = "获取积分不能为空")
    private Double score;

    @NotNull(message = "会员等级积分倍数不能为空")
    @Valid
    private List<GradeRatioDto> memberScoreGradeRatioList;

    @NotNull(message = "获取类型不能为空")
    private Integer taskStyleId;

    private String startDate;

    private String endDate;

    @NotEmpty(message = "备注不能为空")
    private String comment;

    private String triggerNumber;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTriggerId() {
        return triggerId;
    }

    public void setTriggerId(Integer triggerId) {
        this.triggerId = triggerId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Integer getTaskStyleId() {
        return taskStyleId;
    }

    public void setTaskStyleId(Integer taskStyleId) {
        this.taskStyleId = taskStyleId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }


    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getTriggerNumber() {
        return triggerNumber;
    }

    public void setTriggerNumber(String triggerNumber) {
        this.triggerNumber = triggerNumber;
    }

    public List<GradeRatioDto> getMemberScoreGradeRatioList() {
        return memberScoreGradeRatioList;
    }

    public void setMemberScoreGradeRatioList(List<GradeRatioDto> memberScoreGradeRatioList) {
        this.memberScoreGradeRatioList = memberScoreGradeRatioList;
    }

}
